home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / flashstrike / flashstrike.swf / scripts / DefineButton2_237 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2006-02-03  |  655 b   |  29 lines

  1. on(press){
  2.    if(_root.hiding == "no")
  3.    {
  4.       if(_root.reloading == "no")
  5.       {
  6.          if(_root.ammo > -1)
  7.          {
  8.             if(_root.zoomed == 1)
  9.             {
  10.                _root.sight.gotoAndPlay("blood");
  11.                this.play();
  12.             }
  13.             if(_root.targethit <= 1)
  14.             {
  15.                _root.sight.gotoAndPlay("blood");
  16.                this.play();
  17.             }
  18.             else
  19.             {
  20.                ouch = new Sound(this);
  21.                ouch.attachSound("ouch");
  22.                ouch.start(0,1);
  23.                _root.targethit -= 1;
  24.             }
  25.          }
  26.       }
  27.    }
  28. }
  29.